/* ---------------------------------------------------------------------------------------------------------------------
 * File: viewplayerscreen.h
 * Author: Joe Huang
 * Purpose: This screen purpose was to display player stats and allow the user to edit the stats.
 *          This was proving troublesome to figure out and debug due to
 *          issues with the way the player class is set up.
 * ---------------------------------------------------------------------------------------------------------------------*/
#ifndef VIEWPLAYERSCREEN_H
#define VIEWPLAYERSCREEN_H
#include <QtSql>
#include "player.h"
#include <QList>

#include <QWidget>

namespace Ui {
class viewplayerscreen;
}

class viewplayerscreen : public QWidget
{
    Q_OBJECT
    
public:
    explicit viewplayerscreen(QWidget *parent = 0);
    ~viewplayerscreen();

    
private:
    Ui::viewplayerscreen *ui;
    void loadPlayerList();
//    QSqlQuery query;
    QSqlRecord record;
    QList<Player*> player_list;
private slots:

    void fillBoxes();

};

#endif // VIEWPLAYERSCREEN_H
